home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_bas / pbc32.zip / PBC$BAS.ZIP / GETLABL2.BAS < prev    next >
BASIC Source File  |  1996-04-10  |  672b  |  18 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |   PBClone  (C) Copyright 1996 Charon Software, All Rights Reserved   |
  4. '   |                                                                      |
  5. '   +----------------------------------------------------------------------+
  6.  
  7. DECLARE SUB GetLabel (Drive$, Label$, LabelLen%, ErrCode%)
  8.  
  9. FUNCTION GetLabel2$ (Drive$)
  10.    Label$ = SPACE$(11)
  11.    GetLabel Drive$, Label$, LLen%, ErrCode%
  12.    IF ErrCode% THEN
  13.       GetLabel2$ = ""
  14.    ELSE
  15.       GetLabel2$ = LEFT$(Label$, LLen%)
  16.    END IF
  17. END FUNCTION
  18.